package com.ztgf.order.models.bo.purchase;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 采购信息表SaveBO
 *
 * @author mxli
 * @Date 2021-05-17 10:15:52
 */
@Data
public class PurchaseInfoImportSaveBO implements Serializable {


    @ApiModelProperty(value = "创建用户id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long createUserId;
    @ApiModelProperty(value = "创建用户名称")
    private String createUserName;
    @ApiModelProperty(value = "店铺id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long shopId;
    @ApiModelProperty(value = "公司名称")
    private String shopName;
    @ApiModelProperty(value = "名称", required = true)
    private String name;
    @ApiModelProperty(value = "发布类型 0买家发布、1admin发布，2admin代客发布")
    private Integer publishType;
    @ApiModelProperty(value = "过期时间" , required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//输入字符串
    private Date expiredTime;
    @ApiModelProperty(value = "是否同意平台修改 0不同意、1同意" , required = true)
    private Integer acceptEditStatus;

}